package wiki.kaizen.cloud.plugin.spring.util;

/**
 *
 * @author kaizen
 * */
public class Concat{
    final String SEPARATOR;
    private final String PREFIX;

    public Concat(final String separator,final String prefix){
        this.SEPARATOR = separator;
        this.PREFIX = prefix;
    }
    public Concat(final String prefix){
        this(":",prefix);
    }
    public Concat concat(String suffix){
        return new Concat(this.get(suffix));
    }
    public String get(final String suffix){
        return this.PREFIX + this.SEPARATOR + suffix;
    }
}
